-
-
Notifications
You must be signed in to change notification settings - Fork 115
fixed load nested config from env #723
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Thanks @Sube-py for the PR. |
|
@hramezani plz check. |
Thanks @Sube-py please check the comments |
|
@hramezani Review it please. |
pydantic_settings/sources/base.py
Outdated
| if files is None: | ||
| return {} | ||
| if isinstance(files, (str, os.PathLike)): | ||
| if not isinstance(files, Sequence) or isinstance(files, (str, bytes)): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so sorry, please revert this part. I was about to mention the PR creator on the other PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
XD, has been reverted.
This reverts commit 1ddbd51.
|
Thanks @Sube-py |
When using environment variables to override multi-level configurations, an error will occur if the configuration is of a complex type.
Reproduce code: